package chat.whiteboard.components;

import java.awt.event.ActionListener;

import javax.swing.JButton;

import chat.whiteboard.WhiteBoardController;


public class RectangleButton extends JButton implements ICommand{
	WhiteBoardController controller = null;
	public RectangleButton(ActionListener act,WhiteBoardController controller){
		this.controller = controller;
		addActionListener(act);
		controller.registerRectangleButton(this);
	}
	@Override
	public void execute() {
		System.out.println("Rectangle Button");	
		controller.startRectangleState();
	}
}
